#include <stdio.h>
#include <math.h>

int main(int argc, char *argv[]) {

    int h;
	double x, y, m, n, r;

	scanf("(%lf,%lf)", &x, &y);
	//fabs浮点数坐标的绝对值
    if (fabs(x) > 3 || fabs(y) > 3) {
		h = 0;
        printf("%d", h);
        return 0;
	}
    //勾股定理，计算点到圆心的距离
	m = fabs(x) - 2; n = fabs(y) - 2;
	r = sqrt(m * m + n * n);
	if (r > 1)
		h = 0;
	else
		h = 10;
	printf("%d", h);
	return 0;


    return 0;
}